<!--
 The MIT License

 Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
 All rights reserved.
 node-red-contrib-bacnet
-->

<script type="text/javascript">
  RED.nodes.registerType('BACnet-Device', {
    category: 'config',
    defaults: {
      name: {value: ""},
      deviceAddress: {value: ''}
    },
    label: function () {
      return this.name || "BACnet Device";
    }
  });
</script>

<script type="text/x-red" data-template-name="BACnet-Device">
    <div class="form-row">
        <label for="node-config-input-name"><i class="icon-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
        <input type="text" id="node-config-input-name" placeholder="">
    </div>
    <div class="form-row">
        <label for="node-config-input-deviceAddress"><i class="icon-tag"></i> <span data-i18n="bacnet-contrib.label.deviceAddress"></span></label>
        <input type="text" id="node-config-input-deviceAddress" placeholder="127.0.0.1">
    </div>
</script>

<script type="text/x-red" data-help-name="BACnet-Device">
    <h2>BACnet Device node</h2>

    <h3>BETA</h3>
    <a href="https://fh1ch.github.io/node-bacstack/" target="_blank">API Docs</a>

    The device to address via BACnet.
</script>
